package annotation.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

public class Groups2 {
    //@Autowired
    //@Qualifier("people1")
    @Resource(name = "people2")
    private People people;

    @Override
    public String toString() {
        return "Groups{" + "people=" + people + '}';
    }
}
